package com.api.salary;
import com.api.salary.FallBackFactory.SalaryService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(value = "salary",fallbackFactory = SalaryService.class)
public interface SalaryClient {
    @GetMapping("/bank/list")
    Object list();
    @PostMapping("/bank/update")
    void UpdateS(@RequestParam("id") Long id, @RequestParam("name") String name);
}
